package com.example.ex2.mappers;



import com.example.ex2.pojo.Student;

import java.util.Map;

public class StudentMapper {

    static Student student = new Student("叶兴",1925121031,2019,"软件工程","计算机学院");

    public Map changeStudent(Map map,String name, int no, int grade, String major, String college){
        student.setName(name);
        student.setNo(no);
        student.setGrade(grade);
        student.setMajor(major);
        student.setCollege(college);
        return show(map);
    }
    public Map show(Map map){
        map.put("name", student.getName());
        map.put("no",student.getNo());
        map.put("grade", student.getGrade());
        map.put("major", student.getMajor());
        map.put("college", student.getCollege());
        System.out.println(map);
        return map;
    }
}
